home *** CD-ROM | disk | FTP | other *** search
- Path: rcp6.elan.af.mil!rscernix!danpop
- From: danpop@mail.cern.ch (Dan Pop)
- Newsgroups: comp.lang.c
- Subject: Re: gettimeofday() makes me mad !
- Date: 5 Mar 96 11:44:33 GMT
- Organization: CERN European Lab for Particle Physics
- Message-ID: <danpop.826026273@rscernix>
- References: <208_9602292012@dudd.uniserve.com> <3136F957.5340@cmt.lpr.mail.carel.fi>
- NNTP-Posting-Host: ues5.cern.ch
- X-Newsreader: NN version 6.5.0 #7 (NOV)
-
- In <3136F957.5340@cmt.lpr.mail.carel.fi> Ari Lukumies <aril@cmt.lpr.mail.carel.fi> writes:
-
- >Carl wrote:
- >>
- >> What about if you use a function similar to the Borland clock_t() which
- >> returns the amount of clock ticks since program start. Don't clock ticks
- >> happen like 18 times per second on most systems?
- >
- >In PC, yes.
-
- Maybe on yours, definitely not on mine.
-
- >In HP, no.
-
- Don't be so sure. A Vectra running Windows is an HP, too :-)
-
- >In Tandem, no. In AS/400, no. In ... (fill in your favorite
- >machine). In Unix, use the function 'ftime'.
-
- Don't! In Unix, gettimeofday() is the right thing. ftime is obsolete
- and is provided only for compatibility with very old applications
- (on some systems (e.g. HP-UX, AIX and Solaris) you have to link special
- compatibility libraries to get it).
-
- Dan
- --
- Dan Pop
- CERN, CN Division
- Email: danpop@mail.cern.ch
- Mail: CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
-